package game.gui.panelvue;

import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;

/**
 *
 * @author Gab'z
 */
class PanelFog extends JPanel {

    private static PanelFog panelFog = null;

    private PanelFog() {
        super();
        setLayout(null);
        setOpaque(false);
        setLocation(0,45);
        setSize(680, 520);
    }

    public static PanelFog getPanelFog() {
        if (panelFog == null) {
            panelFog = new PanelFog();
        }
        return panelFog;
    }

    @Override
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Color ppColor = new Color(40, 40, 40, 70); //r,g,b,alpha
        g.setColor(ppColor);
        g.fillRect(0, 0, 680, 520); //x,y,width,height
        
    }
}
